|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Agent
public abstract class Agent
A basic negotiation agent. You might want to consider using the BOA framework.
| Field Summary | |
|---|---|
negotiator.protocol.BilateralAtomicNegotiationSession |
fNegotiation
Reference to protocol which is set when experimental setup is enabled. |
java.lang.Integer |
sessionNumber
To be implemented correctly. |
java.lang.Integer |
sessionTotalNumber
To be implemented correctly. |
java.util.Date |
startTime
Deprecated. |
Timeline |
timeline
Use timeline for everything time-related. |
java.lang.Integer |
totalTime
Deprecated. |
UtilitySpace |
utilitySpace
Preference profile of the agent as assigned by the tournamentrunner. |
| Constructor Summary | |
|---|---|
Agent()
Empty constructor used to initialize the agent. |
|
| Method Summary | |
|---|---|
abstract Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action. |
void |
cleanUp()
This function cleans up the remainders of the agent: open windows etc. |
AgentID |
getAgentID()
|
java.lang.String |
getName()
|
java.util.HashMap<negotiator.tournament.VariablesAndValues.AgentParameterVariable,negotiator.tournament.VariablesAndValues.AgentParamValue> |
getParameterValues()
Deprecated. |
StrategyParameters |
getStrategyParameters()
|
double |
getUtility(Bid bid)
A convenience method to get the discounted utility of a bid. |
static java.lang.String |
getVersion()
|
void |
init()
This method is called by the protocol every time before starting a new session after the internalInit method is called. |
void |
internalInit(int sessionNumber,
int sessionTotalNumber,
java.util.Date startTimeP,
java.lang.Integer totalTimeP,
Timeline timeline,
UtilitySpace us,
java.util.HashMap<negotiator.tournament.VariablesAndValues.AgentParameterVariable,negotiator.tournament.VariablesAndValues.AgentParamValue> params)
This method is called by the protocol to initialize the agent with a new session information. |
boolean |
isUIAgent()
Determine if this agent is communicating with the user about nego steps. |
void |
parseStrategyParameters(java.lang.String variables)
Used to parse parameters presented in the agent repository. |
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did |
void |
setAgentID(AgentID value)
|
void |
setName(java.lang.String pName)
Sets the name of the agent to the given name. |
void |
sleep(double fraction)
Let the agent wait. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public UtilitySpace utilitySpace
@Deprecated public java.util.Date startTime
@Deprecated public java.lang.Integer totalTime
public Timeline timeline
public java.lang.Integer sessionNumber
public java.lang.Integer sessionTotalNumber
public negotiator.protocol.BilateralAtomicNegotiationSession fNegotiation
| Constructor Detail |
|---|
public Agent()
| Method Detail |
|---|
public static java.lang.String getVersion()
public void init()
public final void internalInit(int sessionNumber,
int sessionTotalNumber,
java.util.Date startTimeP,
java.lang.Integer totalTimeP,
Timeline timeline,
UtilitySpace us,
java.util.HashMap<negotiator.tournament.VariablesAndValues.AgentParameterVariable,negotiator.tournament.VariablesAndValues.AgentParamValue> params)
sessionNumber - number of the session.sessionTotalNumber - total number of sessions.startTimeP - totalTimeP - timeline - keeping track of the time in the negotiation.us - utility space of the agent for the session.params - parameters of the agent.public void ReceiveMessage(Action opponentAction)
opponentAction - public abstract Action chooseAction()
public java.lang.String getName()
@Deprecated public java.util.HashMap<negotiator.tournament.VariablesAndValues.AgentParameterVariable,negotiator.tournament.VariablesAndValues.AgentParamValue> getParameterValues()
public final void setName(java.lang.String pName)
pName - to which the agent's name must be set.public double getUtility(Bid bid)
timeline.
bid - of which we are interested in the utility.
UtilitySpacepublic void sleep(double fraction)
Timeline).
fraction - should be between 0 and 1.public boolean isUIAgent()
public void cleanUp()
public AgentID getAgentID()
public void setAgentID(AgentID value)
value - to which the agent's ID must be set.public StrategyParameters getStrategyParameters()
public void parseStrategyParameters(java.lang.String variables)
throws java.lang.Exception
variables -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||